<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .layui-form-item{
            margin: 10px 0px;
        }
    </style>
</head>
<body>
<form class="layui-form" lay-filter="cusForm" id="add_cus_form" action="" style="padding:15px 10px;">
    <input type="hidden" id="bianhaos" name="id">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">客户名称</label>
            <div class="layui-input-inline">
                <input type="text" name="custName" id="name"  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" readonly>
            </div>
            </div>
        <div class="layui-inline">
            <label class="layui-form-label">客户编号</label>
                <div class="layui-input-inline">
            <input type="text" name="custId" id="idbianhao"  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" readonly >
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">地区</label>
            <div class="layui-input-inline">
                <input type="text" name="region" id="diqu"  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">客户等级</label>
            <div class="layui-input-inline">
                <select name="level"  id="level_add" disabled >
                    <option value="-1">请选择</option>
                    <c:forEach items="${dengjji}" var="dj">
                        <option value="${dj.id}">${dj.name}</option>
                    </c:forEach>
                </select></div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">客户满意度</label>
            <div class="layui-input-inline">
                <select name="satisfied" id="satisfied_add" disabled >
                    <option value="-1">请选择</option>
                    <c:forEach items="${sa}" var="s">
                        <option value="${s.id}">${s.name}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">客户信用度</label>
            <div class="layui-input-inline">
                <select name="credit" id="credit_add" disabled >
                    <option value="-1">请选择</option>
                    <c:forEach items="${cre}" var="c">
                        <option value="${c.id}">${c.name}</option>
                    </c:forEach>
                </select></div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-inline">
                <input type="text" name="phone" id="phone"  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-inline">
                <input type="text" name="email" id="email"  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-inline">
                <input type="text" name="address" id="addressa"  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input" readonly>
            </div>
        </div>
        <div class="layui-inline">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-inline">
                <select name="stat"  id="zhuangtai" disabled >
                    <option value="-1">请选择</option>
                    <c:forEach items="${zhuangtai}" var="zhuangtai">
                        <option value="${zhuangtai.id}">${zhuangtai.name}</option>
                    </c:forEach>
                </select></div>
        </div>
        <%--<input type="text" name="fenpeistat" value="33">--%>
    </div>
    <%--<div class="layui-form-item">--%>
        <%--<div class="layui-inline">--%>
            <%--<label class="layui-form-label">分配状态</label>--%>
            <%--<div class="layui-input-inline">--%>
                <%--<select name="fenpeistat"  id="fenpeizhuangtai" disabled >--%>
                    <%--<option value="-1">请选择</option>--%>
                    <%--<c:forEach items="${fenpei}" var="fenpei">--%>
                        <%--<option value="${fenpei.id}">${fenpei.name}</option>--%>
                    <%--</c:forEach>--%>
                <%--</select></div>--%>
        <%--</div>--%>
    <%--</div>--%>


</form>
<script>
    layui.form.render();
</script>
<script>
    var s="0123456789";
    var a=6;
    var d="ABCDEFGHIJKLMNOPQRSTUVMXYZ";
    var e=2;
    var z="";
    var y="";
    for (var j=0;j<e;j++){
        var aa=Math.random()*10;
        var aaa=Math.floor(aa);
        z=z+d[aaa];
    }
    for (var i=0;i<a;i++){
        var b=Math.random()*10;
        var c=Math.floor(b);
        y=y+s[c];
    }
    var zuhe=z+y;
    $("#idbianhao").val(zuhe);
    // alert(zuhe)

</script>
</body>
</html>
